﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master"
    AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Modeling_HomePage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #dvAchievement
        {
            height: 185px;
            margin-bottom: 10px;
            background-color: #242424;
            border-radius: 9px;
        }
        
        #dvEvents
        {
            min-height: 150px;
        }
        
        #dvNews
        {
            min-height: 200px;
        }
        
        #dvNewCoures
        {
            min-height: 200px;
        }
        
        #dvEvents #tableEvent
        {
            border: thin solid #C0C0C0;
            height: 140px;
            width: 100%;
        }
        
        #dvEvents #tableEvent #MoreEvent
        {
            width: 110px;
            background-color: #2F3957;
            color: #FFFFFF;
            font-weight: bold;
            font-size: 18px;
            text-align: center;
        }
        
        #center1
        {
            width: 900px;
            min-height: 500px;
            padding-top: 15px;
            margin-right: auto;
            margin-left: auto;
        }
        
        .linkStyle2
        {
            color: #FFFFFF;
            font-size: 10px;
            text-decoration: none;
        }
        .linkStyle2:hover
        {
            text-decoration: underline;
            cursor: pointer;
        }
        
        .linkStyle2:visited
        {
            color: #FFFFFF;
        }
        
        .linkStyle3
        {
            font-size: 14px;
            text-decoration: none;
            font-weight: bolder;
            color: #FFFFFF;
        }
        .linkStyle3:hover
        {
            text-decoration: underline;
            cursor: pointer;
        }
        
        .linkStyle3:visited
        {
            color: #FFFFFF;
        }
        
        .barChar
        {
            width: 100%;
            background-image: url('Image/BarCharBarBar.png');
            height: 35px;
        }
        
        .barChar #MoreNews
        {
            border-left-style: solid;
            border-left-width: thin;
            border-left-color: #666666;
            text-align: center;
        }
        
        .barChar #MoreNewCoures
        {
            border-left-style: solid;
            border-left-width: thin;
            border-left-color: #666666;
            text-align: center;
        }
        .newTitle
        {
            font-size: 20px;
            font-weight: bold;
            text-decoration: none;
            color: #000040;
        }
        .newTitle:hover
        {
            text-decoration: underline;
        }
        .newTitle:visited
        {
            color: #000040;
        }
        #NewsTable
        {
            border-style: solid;
            border-width: thick thin thin thin;
            border-color: #FF9900 #666666 #666666 #666666;
            margin: 5px;
            width: 285px;
            height: 450px;
        }
        #NewsTable td
        {
            vertical-align: top;
        }
        
        .imgNew
        {
            margin-top: 10px;
            margin-bottom: 10px;
        }
        .linkTitle
        {
            font-size: 20px;
            font-weight: bold;
            text-decoration: none;
            color: #000000;
        }
        .linkTitle:hover
        {
            text-decoration: underline;
        }
        .linkTitle:visited
        {
            font-size: 20px;
            font-weight: bold;
            text-decoration: none;
            color: #000000;
        }
        .readMore
        {
            text-decoration: none;
            color: #3B7ABE;
            font-style: italic;
        }
        .readMore:hover
        {
            text-decoration: underline;
            color: #0066FF;
        }
        .readMore:visited
        {
            text-decoration: none;
            color: #3B7ABE;
            font-style: italic;
        }
        
        #NewCouresTable
        {
            border-style: solid;
            border-width: thick thin thin thin;
            border-color: #993333;
            margin: 5px;
            width: 285px;
            height: 130px;
        }
        #NewCouresTable td
        {
            vertical-align: top;
        }
        
        #AchivementsTable
        {
            border: thin solid #808080;
            margin: 5px 0px 0px 33px;
            height: 130px;
        }
        .imgAchivements
        {
            width: 100px;
        }
        #tdAchivements
        {
            color: #FFFFFF;
            font-weight: bold;
            font-size: 19px;
            text-align: center;
        }
        #EventsTable
        {
            border: thin solid #C0C0C0;
            height: 130px;
            width: 192px;
        }
        #EventsTable td
        {
            vertical-align: top;
            padding-top: 15px;
        }
        .linkEvent
        {
            color: #293392;
            text-decoration: none;
            font-size: 15px;
            font-weight: bold;
        }
        .linkEvent:hover
        {
            text-decoration: underline;
        }
        .linkEvent:visited
        {
            color: #293392;
            text-decoration: none;
            font-size: 15px;
            font-weight: bold;
        }
        .timeText
        {
            color: #666666;
            font-size: 14px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="center1">
        <div id="dvEvents">
            <table id="tableEvent">
                <tr>
                    <td id="MoreEvent">
                        Featured<br />
                        EVENTS<br />
                        <br />
                        <asp:HyperLink ID="HyperLink1" runat="server" CssClass="linkStyle2" NavigateUrl="~/SubPages/EventsPage.aspx">MORE EVENTS→</asp:HyperLink>
                    </td>
                    <td>
                        <asp:DataList ID="dlEvents" runat="server" RepeatColumns="4">
                            <ItemTemplate>
                                <table id="EventsTable">
                                    <tr>
                                        <td>
                                            <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# String.Format("~/SubPages/Event.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'
                                                Text='<%# DataBinder.Eval(Container.DataItem, "[Title]", "{0:c}")%>' CssClass="linkEvent"></asp:HyperLink>
                                            <br />
                                            <asp:Label ID="lblNewsDescription" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Date & Time]")%>' CssClass="timeText"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
            </table>
        </div>
        <div id="dvNews">
            <table class="barChar">
                <tr>
                    <td>
                    </td>
                    <td width="100" id="MoreNews">
                        <asp:HyperLink ID="HyperLink2" runat="server" CssClass="linkStyle3" NavigateUrl="~/SubPages/NewsPage.aspx">More News→</asp:HyperLink>
                    </td>
                </tr>
            </table>
            <asp:DataList ID="dlNews" runat="server" RepeatColumns="3">
                <ItemTemplate>
                    <table id="NewsTable">
                        <tr>
                            <td>
                                <asp:HyperLink ID="hpNewsTitle" runat="server" NavigateUrl='<%# String.Format("~/SubPages/News.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>' Text='<%# DataBinder.Eval(Container.DataItem, "[Title]", "{0:c}")%>'
                                                    CssClass="newTitle"></asp:HyperLink>
                                <br />
                                <asp:Image ID="imgNews" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "[Image]") %>'
                                    runat="server" Width="280" CssClass="imgNew" />
                                <asp:Label ID="lblNewsDescription" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Description]", "{0:c}")%>'></asp:Label>
                                <br />
                                <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# String.Format("~/SubPages/News.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'
                                    CssClass="readMore">Read more...</asp:HyperLink>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </div>
        <div id="dvNewCoures">
            <table class="barChar">
                <tr>
                    <td>
                    </td>
                    <td width="150" id="MoreNewCoures">
                        <asp:HyperLink ID="HyperLink3" runat="server" CssClass="linkStyle3" NavigateUrl="~/SubPages/NewCouresPage.aspx">More New Courses→</asp:HyperLink>
                    </td>
                </tr>
            </table>
            <asp:DataList ID="dlNewCoures" runat="server" RepeatColumns="3">
                <ItemTemplate>
                    <table id="NewCouresTable">
                        <tr>
                            <td>
                                <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# String.Format("~/SubPages/Coures.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'
                                    Text='<%# DataBinder.Eval(Container.DataItem, "[Name]", "{0:c}")%>' CssClass="linkTitle"></asp:HyperLink>
                                <br />
                                <strong>Subject: </strong>
                                <asp:Label ID="lblNewsDescription" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Subject]", "{0:c}")%>'></asp:Label>
                                <br />
                                <strong>Teacher: </strong>
                                <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Teacher]", "{0:c}")%>'></asp:Label>
                                <br />
                                <strong>Date start: </strong>
                                <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Date Start]")%>'></asp:Label>
                                <br />
                                <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# String.Format("~/SubPages/Coures.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'
                                    CssClass="readMore">More details...</asp:HyperLink>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </div>
        <div id="dvAchievement">
            <table width=100%>
                <tr>
                    <td id="tdAchivements">
                        Achivements <asp:HyperLink ID="HyperLink5" runat="server" CssClass="linkStyle2">MORE→</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:DataList ID="dlAchivements" runat="server" RepeatColumns="6">
                        <ItemTemplate>
                            <table id="AchivementsTable">
                                <tr>
                                    <td>
                                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# String.Format("~/SubPages/Achievement.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'>
                                            <asp:Image ID="imgNews" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "[Image]") %>'
                                                ToolTip='<%# DataBinder.Eval(Container.DataItem, "[Title]") %>' runat="server"
                                                CssClass="imgAchivements" />
                                        </asp:HyperLink>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:DataList>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
